<div class="pageContent">
	
	<form method="post" action="org/saveOrganization"   class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone)">
		<div class="pageFormContent" layoutH="56">
	
		<div class="unit" style="height: 120px">
				<label>首图：</label>
				<p style="width:240px">
				<img  id="imagePreview"  width="220" height="110"/>
				<input type="hidden" id="image" name="image" />
				<p><input type="file" name="file" id="add_bank_file_upload" /></p>
			</div>
	       	<p>
				<label>机 构 名 称 ：</label>
				<input name="name" class="required"type="text" size="30" alt="机 构 名 称"/>
			</p>
	       
			<p>
				<label>标        题：</label>
				<input name="title" class="required" type="text" size="30" alt="标        题"/>	
			</p>
			<p>
				<label>联 系 方 式 ：</label>
				<input name="phone" class="required" type="text" size="30" alt="联 系 方 式"/>	
			</p>
			<p>
				<label>负 责 人 ：</label>
				<select class="combox" name="userId" class="required" >
					<option value="0">请选择....</option>
					<#list userList as user> 
					<option value="${user.userId}">${user.name}</option>
					</#list>
				</select>
			</p>
			<p>
				<label>开 始 时 间 ：</label>
				<input name="startTime"class="date textInput readonly" datefmt="yyyy-MM-dd HH:mm:ss" size="30" readonly="true"  />
			</p>
			<p>
				<label>结 束 时 间 ：</label>
				<input name="endTime" class="date textInput readonly" datefmt="yyyy-MM-dd HH:mm:ss" size="30" readonly="true" />
			</p>

			<p>
				<label>机构详细地址：</label>
				<input name="addrName" class="required" type="text" size="30" alt="机构详细地址"/>
			</p>
		    <p>
				<label>排序值 ：</label>
				<input name="sort" class="required"type="text" size="30" alt="整数,值越大与靠前"/>
			</p>
			<dl class="nowrap">
			<dt>结 构 介 绍：</dt>
			<dd>
				<textarea class="editor" name="detail" rows="15" cols="95"></textarea>
			</dd>
		</dl>
			
		</div>
		<div class="formBar">
			<ul>
				<li>
				<div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div>
				</li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
	 <script type="text/javascript">

$(function() {
	 $("#add_bank_file_upload").uploadify({
        'method'      : 'post',  
        'buttonText'  : '请选择', 
        'swf'         : 'uploadify/scripts/uploadify.swf',
		'uploader'    : 'upload/JonsImage',
        'fileObjName' : 'file', 
        'displayData' : 'speed',
        'auto' : true,
        'onUploadSuccess' : function(file, data, response) { 
        	var json = JSON.parse(data);
        	if(json.date!=null||json.date!=""){
        	$("#imagePreview").attr("src",json.date);
        	$("#image").attr("value",json.date);
        	}else{
        		alert("上传失败，稍后请重试");
        	}
        }  
	 });   
});
</script> 
